import java.util.Map

dialect "mvel"

global com.ahao.util.RuleLogger logger
global java.util.HashMap returnObj

<#list ruleDef.subDefList! as subDef>
rule "${subDef.description}"
salience ${subDef.rankLv.code}
no-loop true
activation-group "rule"
when
    <#noparse>$tp</#noparse> :Map(${subDef.toOptionsText()})
then
    logger.log("进入条件${subDef.rankLv.code}");
    logger.log("user-lv = "+<#noparse>$tp</#noparse>.get("user-lv"));
    logger.log("lg-err-5m = "+<#noparse>$tp</#noparse>.get("lg-err-5m"));
    returnObj.put("action",${subDef.action.toJsonStr()})
end

</#list>